package cn.xej.easyexcel.controller;

import cn.xej.easyexcel.common.Util;
import cn.xej.easyexcel.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private Util util;


    @RequestMapping("/util")
    public List<User> util(){
        List<User> userList = util.users();
        return userList;
    }

}
